import DateUtil from "../../src/engine/utils/DateUtil";
import { RoomModel } from "./RoomModel";

export class RoomGameInfo {

    public game_state: number = 0; //游戏状态
    public current_chair: number = 0; //到谁回合
    public trusteeList: Array<boolean> = []; //托管
    public next_turn_time: number = 0
    public can_auto_time:number = 0

    public apply_dismiss: number = 0 //解散发起人
    public apply_dismiss_time: number = 0;//申请时间
    public apply_dismissList: Array<number> = [] //解散状态 0:未投票 1:同意 2:拒绝
    public apply_dismiss_refuse:number = 0//拒绝人

    public last_chair: number = 0; //
    public isOneRound: boolean = false //是否已经循环了一轮
    public handCardList: Array<Array<number>> = [

    ]

    public resetNextTime(room:RoomModel) {
        this.can_auto_time = 0
        this.next_turn_time = DateUtil.now() +room.conf["tuoguan_time"]*1000 //叫分15秒
    }
  

}